@push('title')
    <title>恒博携程政策上传</title>
@endpush
@push("style2")
    <style>

        form .split-text{
            float: left;
            line-height: 50px;
            font-size: 15px;
            font-weight: 700;
            text-align: left;
            position: absolute;
            left: 40px;
            color: #757575;
            margin-top: -13px
        }
        .layui-form-item {
            margin-left: 300px;
            margin-bottom: 10px;
        }
        .layui-form-label {
            width: 120px;
        }
        /* 底部边框 */
        .input-bottom {
            border: none;
            border-bottom: 1px dashed #e6e6e6;
            outline: none;
            color: #9d9d9d;
            background: none;
        }

        input[disabled] {
            background-color: transparent;
            color: inherit; /* 保持文字颜色不变 */
            cursor: not-allowed; /* 设置鼠标指针为禁止点击状态 */
        }

        .layui-form-mid {
            color: #9d9d9d;
        }
        .layui-textarea,.layui-input {

            border-radius: 4px !important;
            height: 34px;
        }
        .piece {

            margin-top: 15px;
            margin-bottom: 15px;
        }

        .pata-item {
            display: none;
        }

        .back-item{
            display: none;
        }
    </style>
@endpush
@extends('layout.layer')
@section('content')

<form class="layui-form" action="#" lay-filter="first">
    <input type="hidden" name="_token" value="{{csrf_token()}}">
   <hr>
   <div class="split-text">基本信息</div>
   <div class="piece">

       @if(in_array(10,request()->admin_platform) && in_array(11,request()->admin_platform))

           <div class="layui-form-item">
               <label class="layui-form-label">所上平台</label>
               <div class="layui-input-inline">
                   <select name="platform">
                       <option value="10">恒博携程</option>
                       <option value="11">茂华携程</option>
                   </select>
               </div>
           </div>
       @elseif(in_array(10,request()->admin_platform))
           <input type="hidden" name="platform" value="10">
       @elseif(in_array(11,request()->admin_platform))
           <input type="hidden" name="platform" value="11">
       @endif

       <div class="layui-form-item">
           <label class="layui-form-label">政策ID(自动生成)</label>
           <div class="layui-input-inline">
               <input type="text" name="PolicyID" value="0" lay-verify="" disabled lay-reqText="政策ID" placeholder="政策ID" autocomplete="off" class="layui-input input-bottom" >
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">产品类型</label>
           <div class="layui-input-inline">
               <select name="ProductType">
                   <option value="DKHXY">旅行产品</option>
                   <option value="NFD">NFD</option>
                   <option value="HSVIP">航司VIP卡</option>
                   <option value="ZZMP">清仓产品</option>
                   <option value="QW">切位</option>
                   <option value="BJ" selected>包机</option>
               </select>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">订位</label>
           <div class="layui-input-block">
               <input type="radio" name="IsBooking" value="T" title="全部订位" lay-filter="IsBooking">
               <input type="radio" name="IsBooking" value="F" title="全部不订位" checked lay-filter="IsBooking">
               <input type="radio" name="IsBooking" value="" title="紧张订位" lay-filter="IsBooking">
           </div>
       </div>

       <div class="layui-form-item" id="BookingThreshold" style="display: none;">
           <label class="layui-form-label">紧张阈值</label>
           <div class="layui-input-inline">
               <input type="text" name="BookingThreshold" value="1" lay-verify="" lay-reqText="" required placeholder="" autocomplete="off" class="layui-input" >
           </div>
           <div class="layui-form-mid">外放舱位数量小于等于阈值时订位,范围在1-9</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">是否紧张位置过滤</label>
           <div class="layui-input-block">
               <input type="radio" name="IsShortageFilter" value="T" title="是" lay-filter="IsShortageFilter">
               <input type="radio" name="IsShortageFilter" value="F" title="否" checked lay-filter="IsShortageFilter">
           </div>
       </div>

       <div class="layui-form-item" id="ShortageFilterCount" style="display: none;">
           <label class="layui-form-label">紧张过滤阈值</label>
           <div class="layui-input-inline">
               <input type="text" name="ShortageFilterCount" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input" >
           </div>
           <div class="layui-form-mid">外放舱位数小于紧张过滤阈值时，将过滤该政策</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">申请</label>
           <div class="layui-input-block">
               <input type="radio" name="ApplyFlag" value="1" title="是" disabled>
               <input type="radio" name="ApplyFlag" value="0" title="否" disabled checked>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">PATA</label>
           <div class="layui-input-block">
               <input type="radio" name="NeedPATA" value="T" title="是" lay-filter="NeedPATA">
               <input type="radio" name="NeedPATA" value="F" title="否" checked lay-filter="NeedPATA">
           </div>
       </div>

       <div class="layui-form-item pata-item">
           <label class="layui-form-label">验价基准</label>
           <div class="layui-input-inline">
               <input type="text" name="PataBasePrice" value="0" lay-verify="" lay-reqText="" placeholder="非负整数" autocomplete="off" class="layui-input" >
           </div>
           <div class="layui-form-mid">元</div>
       </div>

       <div class="layui-form-item pata-item">
           <label class="layui-form-label">上浮</label>
           <div class="layui-input-inline">
               <input type="text" name="PataPriceValue" value="0" lay-verify="" lay-reqText="" placeholder="非负整数" autocomplete="off" class="layui-input" >
           </div>
           <div class="layui-form-mid">不填或设置为0表示默认,上浮默认为60元</div>
       </div>

       <div class="layui-form-item pata-item">
           <label class="layui-form-label">下浮</label>
           <div class="layui-input-inline">
               <input type="text" name="DownFloatValue" value="0" lay-verify="" lay-reqText="" placeholder="非负整数" autocomplete="off" class="layui-input" >
           </div>
           <div class="layui-form-mid">下浮默认表示验价区间从0开始</div>
       </div>

       <div class="layui-form-item pata-item">
           <label class="layui-form-label">上/下浮单位</label>
           <div class="layui-input-block">
               <input type="radio" name="PataVerifyPriceOption" value="1" title="按固定金额(元)">
               <input type="radio" name="PataVerifyPriceOption" value="0" title="按百分比(%)" checked>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">大客户编码</label>
           <div class="layui-input-inline">
               <input type="text" name="VipCode" value="000000" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input" >
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">授权office号</label>
           <div class="layui-input-inline" lay-filter="OfficeNo">
               <select name="OfficeNo">
                   <option value="" ></option>
                   <option value="CGO134">CGO134</option>
                   <option value="SHA717">SHA717</option>
               </select>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">政策代码</label>
           <div class="layui-input-inline">
               <input type="text" name="PolicyCode" value="" lay-verify="" lay-reqText=""  placeholder="" autocomplete="off" class="layui-input" >
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label layui-required">政策有效性</label>
           <div class="layui-input-block">
               <input type="radio" name="IsValid" value="T" title="有效" checked>
               <input type="radio" name="IsValid" value="F" title="无效">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">支持共享航班</label>
           <div class="layui-input-block">
               <input type="radio" name="IsShareFlight" value="T" title="是" lay-filter="IsShareFlight">
               <input type="radio" name="IsShareFlight" value="F" title="否" checked lay-filter="IsShareFlight">
           </div>
       </div>

       <div class="layui-form-item" id="IsValidCarrierAirline" style="display: none">
           <label class="layui-form-label">按照承运航司验舱验价</label>
           <div class="layui-input-block">
               <input type="radio" name="IsValidCarrierAirline" value="T" title="是">
               <input type="radio" name="IsValidCarrierAirline" value="F" title="否" checked>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">出票备注</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="TicketRemark" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >PATA特殊指令不为空时，出票备注必填</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">IATA号</label>
           <div class="layui-input-inline">
               <input type="text" name="IATANo" value="08309722" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
       </div>
   </div>
   <hr>
   <div class="split-text">航班信息</div>
   <div class="piece">
       <div class="layui-form-item">
           <label class="layui-form-label">航程类型</label>
           <div class="layui-input-block">
               <input type="radio" name="FlightWay" value="S" title="单程" checked lay-filter="FlightWay">
               <input type="radio" name="FlightWay" value="D" title="往返" lay-filter="FlightWay">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label layui-required">航空公司</label>
           <div class="layui-input-inline">
               <input type="text" name="AirLine" value="" lay-verify="required|title" lay-reqText="" placeholder="二字码" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">舱位等级</label>
           <div class="layui-input-block">
               <input type="radio" name="Class" value="Y" title="经济舱" checked>
               <input type="radio" name="Class" value="C" title="公务舱">
               <input type="radio" name="Class" value="F" title="头等舱">
           </div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label layui-required">起飞机场</label></span><span class="back-item"><label class="layui-form-label layui-required">去程起飞机场</label></span>
           <div class="layui-input-inline">
               <input type="text" name="DepartPort" value="" lay-verify="required|title" lay-reqText=""  placeholder="三字码" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label layui-required">降落机场</label></span><span class="back-item"><label class="layui-form-label layui-required">去程降落机场</label></span>
           <div class="layui-input-inline">
               <input type="text" name="ArrivePort" value="" lay-verify="required|title" lay-reqText="" placeholder="三字码" autocomplete="off" class="layui-input">
           </div>
       </div>
       <!--去程-->
       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label">航班号</label></span><span class="back-item"><label class="layui-form-label">去程航班号</label></span>
           <div class="layui-input-block">
               <input type="radio" name="IsCanSale" value="T" title="可售" checked>
               <input type="radio" name="IsCanSale" value="F" title="禁售">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label"></label>
           <div class="layui-input-inline" style="width: 405px">
               <textarea name="RuleDetail" class="layui-textarea" placeholder="1111-2222,3333,4444-5555，英文逗号分隔，最多8000字符"></textarea>
           </div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label layui-required">舱位代码</label></span><span class="back-item"><label class="layui-form-label layui-required">去程舱位代码</label></span>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="SubClass" value="" lay-verify="required|title" lay-reqText=""  placeholder="" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >只允许单个舱位</div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label layui-required">航班日期</label></span><span class="back-item"><label class="layui-form-label layui-required">去程航班日期</label></span>
           <div class="layui-input-inline" id="flight-date" style="width: 500px;">
               <div class="layui-input-inline layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="GoEffectDate" value="{{date('Y-m-d')}}" autocomplete="off" id="flight-start" lay-verify="required|title"  class="layui-input" placeholder="yyyy-MM-dd">
               </div>
               <div class="layui-form-mid">-</div>
               <div class="layui-input-inline layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="GoExpiryDate" value="{{date('Y-m-d')}}" autocomplete="off" id="flight-end" lay-verify="required|title"  class="layui-input" placeholder="yyyy-MM-dd">
               </div>
           </div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label">除外航班日期段</label></span><span class="back-item"><label class="layui-form-label">去程除外航班日期段</label></span>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="ExcludeRouteDate" value="" lay-verify="" lay-reqText=""  placeholder="例如：2030-06-01/2030-06-01,2030-10-01/2030-10-07" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid">格式：YYYY-MM-DD/YYYY-MM-DD，多段中间用","隔开。</div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label">起飞时间</label></span><span class="back-item"><label class="layui-form-label">去程起飞时间</label></span>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="DepartTimeLimit" value="" lay-verify="" lay-reqText=""  placeholder="格式：HHMM-HHMM,例如:0818-0918,至多3段，用,隔" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item">
           <span class="go-item"><label class="layui-form-label layui-required">班期</label></span><span class="back-item"><label class="layui-form-label layui-required">去程班期</label></span>
           <div class="layui-input-inline" style="width: 500px">
               <input type="checkbox" name="Days[]" value="1" title="周一" checked>
               <input type="checkbox" name="Days[]" value="2" title="周二" checked>
               <input type="checkbox" name="Days[]" value="3" title="周三" checked>
               <input type="checkbox" name="Days[]" value="4" title="周四" checked>
               <input type="checkbox" name="Days[]" value="5" title="周五" checked>
               <input type="checkbox" name="Days[]" value="6" title="周六" checked>
               <input type="checkbox" name="Days[]" value="7" title="周日" checked>
           </div>
           <div class="layui-form-mid" ><a href="#" id="flight-week-all" style="color: #1976d2" > 全选 </a>&nbsp;&nbsp;<a href="#" id="flight-week-invert" style="color: #1976d2">反选</a></div>
       </div>

       <!--返程-->
       <div class="layui-form-item back-item">
           <label class="layui-form-label">返程航班号</label>
           <div class="layui-input-block">
               <input type="radio" name="BackIsCanSale" value="T" title="可售" checked>
               <input type="radio" name="BackIsCanSale" value="F" title="禁售">
               <!--                    <input type="radio" name="sex" value="0" title="头等舱">-->
           </div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label"></label>
           <div class="layui-input-inline" style="width: 405px">
               <textarea name="BackRuleDetail" class="layui-textarea" placeholder="1111-2222,3333,4444-5555，英文逗号分隔，最多8000字符"></textarea>
           </div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label layui-required">返程舱位代码</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="BackSubClass" value="" lay-verify="" lay-reqText=""  placeholder="" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >只允许单个舱位</div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label layui-required">返程航班日期</label>
           <div class="layui-input-inline" id="flight-date" style="width: 500px;">
               <div class="layui-input-inline layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="BackEffectDate" value="" autocomplete="off" id="flight-start-back" lay-verify=""  class="layui-input" placeholder="yyyy-MM-dd">
               </div>
               <div class="layui-form-mid">-</div>
               <div class="layui-input-inline layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="BackExpiryDate" value="" autocomplete="off" id="flight-end-back" lay-verify=""  class="layui-input" placeholder="yyyy-MM-dd">
               </div>
           </div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label">返程除外航班日期段</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="BackExcludeRouteDate" value="" lay-verify="" lay-reqText=""  placeholder="例如：2030-06-01/2030-06-01,2030-10-01/2030-10-07" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid">格式：YYYY-MM-DD/YYYY-MM-DD，多段中间用","隔开。</div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label">返程起飞时间</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="BackDepartTimeLimit" value="" lay-verify="" lay-reqText=""  placeholder="格式：HHMM-HHMM,例如:0818-0918,至多3段，用,隔" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label layui-required">返程班期</label>
           <div class="layui-input-inline" style="width: 500px">
               <input type="checkbox" name="BackDays[]" value="1" title="周一" checked>
               <input type="checkbox" name="BackDays[]" value="2" title="周二" checked>
               <input type="checkbox" name="BackDays[]" value="3" title="周三" checked>
               <input type="checkbox" name="BackDays[]" value="4" title="周四" checked>
               <input type="checkbox" name="BackDays[]" value="5" title="周五" checked>
               <input type="checkbox" name="BackDays[]" value="6" title="周六" checked>
               <input type="checkbox" name="BackDays[]" value="7" title="周日" checked>
           </div>
           <div class="layui-form-mid" ><a href="#" id="flight-week-all-back" style="color: #1976d2" > 全选 </a>&nbsp;&nbsp;<a href="#" id="flight-week-invert-back" style="color: #1976d2">反选</a></div>
       </div>


   </div>
   <hr>
   <div class="split-text">销售控制</div>
   <div class="piece">
       <div class="layui-form-item">
           <label class="layui-form-label layui-required">销售日期</label>
           <div class="layui-input-inline" id="sale-date" style="width: 500px;">
               <div class="layui-input-inline layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="EffectDate" value="" autocomplete="off" id="sale-start"  lay-verify="required|title" class="layui-input" placeholder="yyyy-MM-dd">
               </div>
               <div class="layui-form-mid">-</div>
               <div class="layui-input-inline  layui-input-wrap">
                   <div class="layui-input-prefix">
                       <i class="layui-icon layui-icon-date"></i>
                   </div>
                   <input type="text" name="ExpiryDate" value="" autocomplete="off" id="sale-end"  lay-verify="required|title" class="layui-input" placeholder="yyyy-MM-dd">
               </div>
           </div>
       </div>
       <div class="layui-form-item">
           <label class="layui-form-label layui-required">销售周期</label>
           <div class="layui-input-inline" style="width: 500px">
               <input type="checkbox" name="SaleDays[]" value="1" title="周一" checked>
               <input type="checkbox" name="SaleDays[]" value="2" title="周二" checked>
               <input type="checkbox" name="SaleDays[]" value="3" title="周三" checked>
               <input type="checkbox" name="SaleDays[]" value="4" title="周四" checked>
               <input type="checkbox" name="SaleDays[]" value="5" title="周五" checked>
               <input type="checkbox" name="SaleDays[]" value="6" title="周六" checked>
               <input type="checkbox" name="SaleDays[]" value="7" title="周日" checked>
           </div>
           <div class="layui-form-mid" ><a href="#" id="sale-week-all" style="color: #1976d2" > 全选 </a>&nbsp;&nbsp;<a href="#" id="sale-week-invert" style="color: #1976d2">反选</a></div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">销售时间</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="SaleTimeLimit" value="" lay-verify="" lay-reqText="" placeholder="例如：0320-0524" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >格式：HHMM-HHMM，至多录入3段销售时间，中间用","隔开。</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">提前预订天数</label>
           <div class="layui-input-inline">
               <input type="text" name="AdvanceDay" value="0-365" lay-verify="" lay-reqText="" placeholder="0-365" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >只能输入A-B的格式，并且A、B都是0到365之间的整数</div>
       </div>

       <div class="layui-form-item back-item">
           <label class="layui-form-label">停留天数(往返)</label>
           <div class="layui-input-inline">
               <input type="text" name="StopDay" value="" lay-verify="" lay-reqText="" placeholder="0-365" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid" >只能输入A-B的格式，并且A、B都是0到365之间的整数</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">儿童订成人票</label>
           <div class="layui-input-block">
               <input type="radio" name="ApplyChild" value="T" title="可以">
               <input type="radio" name="ApplyChild" value="F" title="不可以" checked>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">定向投放</label>
           <div class="layui-input-inline" style="width: 200px">
               <input type="checkbox" name="HideSales" value="" title="年龄限制" disabled>
               <input type="checkbox" name="HideSales" value="T" title="乘客人数" lay-filter="HideSales">
           </div>
       </div>

       <div id="passengers-num" style="border: 1px solid  #9d9d9d;display: none;box-shadow: 0 2px 6px #aaa;">

           <div class="layui-form-item" style="margin-top: 10px">
               <label class="layui-form-label">乘客人数</label>
               <div class="layui-input-inline">
                   <input type="text" name="passengersNum" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               </div>
               <div class="layui-form-mid" >可填写人数或范围.如果填2，表示只适用于两人同行;如果填2-3，表示只适用于2至3人同行，人数最少为2</div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label">婴儿是否计入人数</label>
               <div class="layui-input-block">
                   <input type="radio" name="IncludeChildNum" value="T" title="可以">
                   <input type="radio" name="IncludeChildNum" value="F" title="不可以">
               </div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label">同退改</label>
               <div class="layui-input-block">
                   <input type="radio" name="RefundChange" value="A" title="无需同退改(不需要所有人同退同改)" checked>
                   <input type="radio" name="RefundChange" value="C" title="全部同退改(订单中所有人同退同改)">
               </div>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">是否限制身份</label>
           <div class="layui-input-block">
               <input type="radio" name="IDLimit" value="T" title="是" lay-filter="IDLimit">
               <input type="radio" name="IDLimit" value="F" title="否" lay-filter="IDLimit" checked>
           </div>
       </div>

       <div class="layui-form-item" id="IDCardList" style="display: none;">
           <label class="layui-form-label">身份限制</label>
           <div class="layui-input-block">
               <input type="checkbox" name="IDCardList[]" value="ID" title="身份证">
               <input type="checkbox" name="IDCardList[]" value="PASSPORT" title="护照">
               <input type="checkbox" name="IDCardList[]" value="MTC" title="军人证">
               <input type="checkbox" name="IDCardList[]" value="RP" title="回乡证">
               <input type="checkbox" name="IDCardList[]" value="MTP" title="台胞证">
               <input type="checkbox" name="IDCardList[]" value="HMP" title="港澳通行证">
               <input type="checkbox" name="IDCardList[]" value="RBT" title="户口薄">
               <input type="checkbox" name="IDCardList[]" value="BRC" title="出生证明">
           </div>
       </div>

       <div class="layui-form-item" style="margin-bottom: 20px">
           <label class="layui-form-label">注册代码</label>
           <div class="layui-input-inline">
               <div class="layui-input-inline">
                   <select name="Sourcefrom">
                       <option value="0"></option>
                       <option value="1">里程抵现非凡享</option>
                       <option value="2">会员价</option>
                       <option value="S13000">航海哈尔滨</option>
                       <option value="S15000">航海大连</option>
                       <option value="S14000">航海沈阳</option>
                   </select>
               </div>
           </div>
       </div>
   </div>
   <hr>
   <div class="piece">
       <div class="split-text">退改签</div>
       <div class="layui-form-item">
           <label class="layui-form-label">退改签ID</label>
           <div class="layui-input-inline">
               <input type="text" name="RcID" value="12410623" disabled lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label layui-required">退改签选择</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="text" name="RcID_LIST" value="12413045-372bd001-4091-d94d-73fa-3a135f650ca9" disabled lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
       </div>

       <div id="rcId">
           <div class="layui-form-item">
               <label class="layui-form-label layui-required">计算基准</label>
               <div class="layui-input-block">
                   <input type="radio" name="FeeBasis" value="S" title="票面价" checked>
                   <input type="radio" name="FeeBasis" value="F" title="标准价">
                   <input type="radio" name="FeeBasis" value="D" title="FD价">
               </div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label layui-required">退票公式</label>
               <div class="layui-input-inline">
                   <input type="text" name="RefundRateRemarks" value="0" lay-verify="required|title" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               </div>
               <div class="layui-form-mid">10-2-20-0-50，表示起飞前2小时之前的手续费比例是10%，起飞前2小时（含）以内收20%，航班起飞后收50%</div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label layui-required">最低退票费</label>
               <div class="layui-input-inline">
                   <input type="text" name="MinFeeExpense" value="0" lay-verify="required|title" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               </div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label layui-required">改期公式</label>
               <div class="layui-input-inline">
                   <input type="text" name="FreeChangeTimeRemarks" value="0" lay-verify="required|title" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               </div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label layui-required">是否签转</label>
               <div class="layui-input-block">
                   <input type="radio" name="IsEndorse" value="T" title="是" checked>
                   <input type="radio" name="IsEndorse" value="F" title="否">
               </div>
           </div>

           <div class="layui-form-item">
               <label class="layui-form-label">退改签备注</label>
               <div class="layui-input-inline" style="width: 405px;">
                   <textarea name="Remarks" class="layui-textarea">不退不改不签</textarea>
               </div>
           </div>
       </div>
   </div>
   <hr>
   <div class="split-text">价格结算</div>
   <div class="piece">
       <div class="layui-form-item">
           <label class="layui-form-label layui-required">价格模型</label>
           <div class="layui-input-inline" style="width: 405px">
               <input type="radio" name="IsCompositionPrice" value="F" title="单人价格" checked>
               <input type="radio" name="IsCompositionPrice" value="T" title="组合价格">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">政策标签</label>
           <div class="layui-input-inline">
               <input type="text" name="PNR" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid">例如：M3S1, 表示买三赠一，乘客人数必须是4个，否则会校验失败; STU, 表示学生票</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label layui-required">票面价</label>
           <div class="layui-input-inline">
               <input type="text" name="PrintPrice" value="0" lay-verify="required|title" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
           </div>
           <div class="layui-form-mid">正整数</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">结算价</label>
           <div class="layui-input-inline layui-input-group">
               <input type="text" name="SetPrice" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               <div class="layui-input-split layui-input-suffix">
                   元
               </div>
           </div>
           <div class="layui-form-mid">结算价和代理费率选择其一录入</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">代理费率</label>
           <div class="layui-input-inline layui-input-group">
               <input type="text" name="ReturnPoint" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               <div class="layui-input-split layui-input-suffix">
                   %
               </div>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">留钱</label>
           <div class="layui-input-inline layui-input-group">
               <input type="text" name="ReturnPrice" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               <div class="layui-input-split layui-input-suffix">
                   元
               </div>
           </div>
           <div class="layui-form-mid">正负整数</div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label layui-required">竞价类型</label>
           <div class="layui-input-block">
               <input type="radio" name="BidType" value="0" title="按固定金额" checked lay-filter="BidType">
               <input type="radio" name="BidType" value="1" title="按百分比" lay-filter="BidType">
           </div>
       </div>

       <div class="layui-form-item">
           <label class="BiddingSpace_Money"><label class="layui-form-label">竞价金额</label></label><label class="BiddingSpace_Percentage" style="display: none;"><label class="layui-form-label">百分比</label></label>
           <div class="layui-input-inline layui-input-group">
               <input type="text" name="BiddingSpace" value="" lay-verify="" lay-reqText="" placeholder="" autocomplete="off" class="layui-input">
               <div class="layui-input-split layui-input-suffix">
                   <label class="BiddingSpace_Money">元</label><label class="BiddingSpace_Percentage" style="display: none;">%</label>
               </div>
           </div>
           <div class="layui-form-mid">不允许录入负值支持2位小数；非旅行套餐范围为[0,100]，旅行套餐范围[0,300]；不填默认0</div>
       </div>
   </div>
   <hr>
   <div class="split-text">库存</div>
   <div class="piece">
       <div class="layui-form-item">
           <label class="layui-form-label layui-required">库存类型</label>
           <div class="layui-input-block">
               <input type="radio" name="InventoryType" value="FIX" title="按照库存销售" lay-filter="InventoryType" checked>
               <input type="radio" name="InventoryType" value="FAV" title="在Eterm舱位外放时设置最大销售数量" lay-filter="InventoryType">
           </div>
       </div>

       <div class="layui-form-item" id="IsReturnRefundInventory" style="display: block;">
           <label class="layui-form-label">退票是否还库存</label>
           <div class="layui-input-block">
               <input type="radio" name="IsReturnRefundInventory" value="T" title="是">
               <input type="radio" name="IsReturnRefundInventory" value="F" title="否" checked>
           </div>
       </div>

       <div class="layui-form-item">
           <label class="layui-form-label">库存数量</label>
           <div class="layui-input-inline">
               <input type="text" name="TicketInventory" value="" id="TicketInventory" lay-verify="" lay-reqText="" lay-filter="TicketInventory" placeholder="" autocomplete="off" class="layui-input TicketInventory">
           </div>
           <div class="layui-form-mid">如不填写，则按照Eterm舱位外放情况销售</div>
       </div>
       <div class="layui-form-item">
           <label class="layui-form-label">剩余可售数量</label>
           <div class="layui-input-inline">
               <input type="text" name="LeftInventory" value="" lay-verify="" lay-reqText="" disabled placeholder="" autocomplete="off" class="layui-input input-bottom" >
           </div>
       </div>
   </div>
   <div class="layui-form-item">
       <div class="layui-input-block">
           <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
           <button type="reset" class="layui-btn layui-btn-primary">重置</button>
       </div>
   </div>
</form>

@endsection

@push('script')
<script src="/static/js/policyupload/ctrip.js?version={{env('JS_VERSION')}}"></script>
<script>
   layui.use(['form'], function() {

       var $ = layui.$
           ,form = layui.form;

       //监听提交
       form.on('submit(*)', function(data){

           $.ajax({
               url: '/policyupload/ajaxAdd'
               , method: 'post'
               , data: data.field
               , dataType: 'json'
               , success: function (data) {

                   layer.msg(data.errmsg, {
                       offset: '15px'
                       ,icon: (data.errcode == 0 ? 1: 5)
                       ,time: 3000
                   }, function(){});
               },
           });

           return false;
       });

   })
</script>
@endpush